<?php
namespace app\api\controller;
use think\Db;
class Tool
{
    public function index(){

        //生成优惠券
        $data = [];
        for ($i = 1; $i <= 10000; $i++) {
            $code = rand(100000000000,999999999999);
            $data[] = ['code'=>$code];
        }
        Db::name('com_code')->insertAll($data);
        e(date("ymd H:i:s"));
        js_url();
    }
}
